package admin

import (
	"github.com/gin-gonic/gin"
	api "ruoyi_gin/app/admin/api/system"
	"ruoyi_gin/app/admin/router/system"
)

func Routers(e *gin.Engine) {

	e.GET("/index", api.IndexHandler)
	e.GET("/captchaImage", api.CaptchaImageHandle1)
	e.POST("/login", api.LoginHandler)

	system.InitUser(e)
	system.InitRole(e)
	system.InitDept(e)
}
